# HDFS 数量采集项目
HDFS_COUNT = {
    'USERTRACK2G': (
        '/share/external_table/DMP_SOR/USERLABEL/UserTrack2G/{yesday}/*gz|wc -l', 'USER_TRACK_2G_MINITOR', 'HDFS_FILE'
    ),
    'USERTRACK': (
        'hadoop fs -ls /share/external_table/DMP_SOR/USERLABEL/UserTrack/{yesday}/*gz|wc -l', 'USER_TRACK_4G_MINITOR',
        'HDFS_FILE'
    ),
    'WUXIAN': (
        '/datasource/CJ_WXWY_LTEWXHD/ALL/{yesday}/*gz|wc -l', 'USER_TRACK_WX_MINITOR', 'HDFS_FILE'
    ),  # 14801
    'NOCDPI': (
        'hadoop fs -ls /datasource/CJ_DPI_GW/0*/{yesday}/*/*gz|wc -l', 'DPI_MONITOR_HOUR', 'HDFS_FILE'
    ),  # 36852,36862
}

# HDFS 数量采集项目
# wuxian_wz_20180730235418_3_5_0001_c87cef41a108ad78a384e3df4f49fde1.gz
HDFS_DLAY = {
    'WUXIAN': ('/datasource/CJ_WXWY_LTEWXHD/ALL/{today}/*gz', 'USER_TRACK_WX_MINITOR', 'HDFS_DLAY'),
}

# 程序配置
SLEEP = 60 # 休眠时间
HOUR = '10' # 执行时间
